package com.poposchool.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 商品表
 * </p>
 *
 * @author wangjie
 * @since 2022-09-09
 */
@Getter
@Setter
@TableName("yx_store_product")
@ApiModel(value = "StoreProduct对象", description = "商品表")
public class StoreProduct implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("商品id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("商户Id(0为总后台管理员创建,不为0的时候是商户后台创建)")
    private Integer merId;

    @ApiModelProperty("商品图片")
    private String image;

    @ApiModelProperty("轮播图")
    private String sliderImage;

    @ApiModelProperty("商品名称")
    private String storeName;

    @ApiModelProperty("商品简介")
    private String storeInfo;

    @ApiModelProperty("关键字")
    private String keyword;

    @ApiModelProperty("产品条码（一维码）")
    private String barCode;

    @ApiModelProperty("分类id")
    private String cateId;

    @ApiModelProperty("商品价格")
    private BigDecimal price;

    @ApiModelProperty("会员价格")
    private BigDecimal vipPrice;

    @ApiModelProperty("市场价")
    private BigDecimal otPrice;

    @ApiModelProperty("邮费")
    private BigDecimal postage;

    @ApiModelProperty("单位名")
    private String unitName;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("销量")
    private Integer sales;

    @ApiModelProperty("库存")
    private Integer stock;

    @ApiModelProperty("状态（0：未上架，1：上架）")
    private Boolean isShow;

    @ApiModelProperty("是否热卖")
    private Boolean isHot;

    @ApiModelProperty("是否优惠")
    private Boolean isBenefit;

    @ApiModelProperty("是否精品")
    private Boolean isBest;

    @ApiModelProperty("是否新品")
    private Boolean isNew;

    @ApiModelProperty("产品描述")
    private String description;

    @ApiModelProperty("添加时间")
    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    @ApiModelProperty("是否包邮")
    private Integer isPostage;

    @ApiModelProperty("是否删除")
    private Integer isDel;

    @ApiModelProperty("商户是否代理 0不可代理1可代理")
    private Integer merUse;

    @ApiModelProperty("获得积分")
    private BigDecimal giveIntegral;

    @ApiModelProperty("成本价")
    private BigDecimal cost;

    @ApiModelProperty("秒杀状态 0 未开启 1已开启")
    private Integer isSeckill;

    @ApiModelProperty("砍价状态 0未开启 1开启")
    private Integer isBargain;

    @ApiModelProperty("是否优品推荐")
    private Boolean isGood;

    @ApiModelProperty("虚拟销量")
    private Integer ficti;

    @ApiModelProperty("浏览量")
    private Integer browse;

    @ApiModelProperty("产品二维码地址(用户小程序海报)")
    private String codePath;

    @ApiModelProperty("是否单独分佣")
    private Boolean isSub;

    @ApiModelProperty("运费模板ID")
    private Integer tempId;

    @ApiModelProperty("规格 0单 1多")
    private Boolean specType;

    @ApiModelProperty("是开启积分兑换")
    private Boolean isIntegral;

    @ApiModelProperty("需要多少积分兑换 只在开启积分兑换时生效")
    private Integer integral;


}
